Gimpel Home Page
Sample Program
On-Line Demonstrations of FlexeLint and PC-lint (aka FlexeLint for Windows)

Bug of the Month for October 2003

Bug of the Month Samples

The programmer wrote a "wonderful" algorithm to determine the length of the maximum run of 0's or 1's in a word. Unfortunately there is a fatal flaw that renders his algorithm useless. Can you spot it?

Modify this example, if desired, and then hit the Analyse Code button

Run FlexeLint on Bug of the Month Samples
Home | Examples | Contact | Order

PC-lint and FlexeLint are trademarks of Gimpel Software
Copyright © 2009, Gimpel Software

Viewable With Any Browser